package com.hbzhit.modules.nm.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hbzhit.common.utils.MybatisCache;
import com.hbzhit.modules.nm.entity.NoticeEntity;
import com.hbzhit.modules.nm.form.NoticeQueryForm;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 消息通知
 *
 * @author Tiger.Zhang
 * 2020-01-09 10:36
 */
@Mapper
@Repository
@CacheNamespace(implementation = MybatisCache.class, eviction = MybatisCache.class)
public interface NoticeDao extends BaseMapper<NoticeEntity> {

    List<NoticeEntity> selectNoticePage(IPage<NoticeEntity> page, @Param("params") NoticeQueryForm params);
}
